<?php
/**
 * @package     Joomla.Site
 * @subpackage  mod_articles_archive
 *
 * @copyright   Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */
defined('_JEXEC') or die;
$db = & JFactory::getDBO();
$loai 		= $params->get('loai',	1);
$iditem		= $params->get('count',	10);
if($loai==1){
	$sql="SELECT * from #__content where id='".$iditem."' and state=1";
	$db->setQuery($sql);
	$rows = $db->loadObjectList();
?>
<div class="aboutus">
	<h1><strong><?php echo $rows[0]->title;?></strong></h1>
    <div class="acc-content clearfix">
	<?php echo $rows[0]->introtext;?>
    <a class="readmore" href="index.php?option=com_content&view=article&id=<?php echo $rows[0]->id;?>:<?php echo $rows[0]->alias;?>&catid=<?php echo $rows[0]->catid;?>&Itemid=137"><?php echo JText::_('Read more')?></a>
    </div>
</div>
<?php
}
if($loai==0){
?>
<?php if (!empty($list)) :?>
	<ul class="archive-module<?php echo $moduleclass_sfx; ?>">
	<?php foreach ($list as $item) : ?>
	<li>
		<a href="<?php echo $item->link; ?>">
			<?php echo $item->text; ?>
		</a>
	</li>
	<?php endforeach; ?>
</ul>
<?php endif; ?>
<?php
}
?>
